export interface ResponseData {
  code: number
  message: string
}

//全部任务概况接口返回的数据的ts类型
export interface AllMissionInfoResponseData extends ResponseData {
  data: {
    total: number
    list: MissionInfo[]
    pageNum: number
    pageSize: number
    size: number
    startRow: number
    endRow: number
    pages: number
    prePage: number
    nextPage: number
    isFirstPage: boolean
    isLastPage: boolean
    hasPreviousPage: boolean
    hasNextPage: true
    navigatePages: number
    navigatepageNums: number[]
    navigateFirstPage: number
    navigateLastPage: number
  }
}

//单个任务详情接口返回的数据的ts类型
export interface SingleMissionInfoResponseData extends ResponseData {
  data: MissionInfo
}

export interface MissionInfo {
  id: string
  applyTime: string
  finishTime: string | null
  taskStatus: number
  taskName: string
  taskDepartment: string
  dataNum: number
  mistake: string | null
}

export interface CodeListResponseData extends ResponseData {
  data: {
    total: number
    list: CodeInfo[]
    pageNum: number
    pageSize: number
    size: number
    startRow: number
    endRow: number
    pages: number
    prePage: number
    nextPage: number
    isFirstPage: boolean
    isLastPage: boolean
    hasPreviousPage: boolean
    hasNextPage: true
    navigatePages: number
    navigatepageNums: number[]
    navigateFirstPage: number
    navigateLastPage: number
  }
}

export interface CodeInfo {
  code: string
  entityName: string
  entityId: string
  registerTime: string
  regionCode: string
  latitude: string
  longitude: string
  altitude: string | null
  bdewwgm2d: string
  bdswwgm3d: string
  regionName: string
  typeCode: string
  typeName: string | null
  regionDescription: string | null
  department: string
  isDeleted: boolean
  taskId: string
}

export interface DeleteCodeResponseData extends ResponseData {
  data: any
}
